home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Misc / Crossword / Source / PlainWord.h < prev    next >
Text File  |  1992-10-11  |  878b  |  40 lines

  1. /*
  2.  
  3. File PlainWord.h
  4.  
  5. Letters and words lie at the heart of the crossword puzzle search.  The search currently proceeds one letter at a time; looking one word at a time can be construed as a special case.  Words have only one function: to keep track of the possibilities that remain.
  6.  
  7. */
  8.  
  9. #import <objc/Object.h>
  10. #import "Dictionary.h"
  11.  
  12.  
  13. /* ————————————————————————————————————————————————————————————————————————————  */
  14.  
  15.  
  16. typedef int        (* countTable)[LETTERS];
  17.  
  18.  
  19. /* ————————————————————————————————————————————————————————————————————————————  */
  20.  
  21.  
  22. @interface PlainWord:Object
  23. {
  24.     id        puzzle;
  25.     id        squares;
  26.     char    pattern [MAXLETTERS + 1];
  27.     int        n;
  28.     int        last;
  29.     int        count [MAXLETTERS][LETTERS];
  30. }
  31.  
  32. - (countTable) getCount;
  33. - initPuzzle: (id) thePuzzle;
  34. - setSquares: (id) theSquares;
  35. - free;
  36. - changeLetter: (int) i  to: (char) c;
  37. - update;
  38. - processWord: (char *) string;
  39.  
  40. @end